import React from 'react'
import { NavLink, Outlet } from 'react-router-dom';

export default function Home() {
  return (
    <div>
      <h3>我是Home组件</h3>
      <ul className="nav nav-tabs">
        <li className="nav-item">
          <NavLink className="nav-link" to="news">News</NavLink>
        </li>
        <li className="nav-item">
          <NavLink className="nav-link" to="message">Message</NavLink>
        </li>
      </ul>
      <Outlet />
    </div>
  )
}
